package com.liu.system.manage;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.liu.common.utils.IdWorker;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;

@Slf4j
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.liu.system.manage.mapper")
@EnableWebSecurity
public class SystemManage {
    public static void main(String[] args) {
        SpringApplication.run(SystemManage.class,args);
    }


    @Bean
    public IdWorker getIdWorker(){
        return new IdWorker(1,1);
    }




}
